1999-11-03 Federico Mena Quintero <federico@redhat.com>
* src/gnome-canvas-pixbuf.c (recompute_bounding_box): Do proper
rounding of bounding box coordinates.
(gnome_canvas_pixbuf_bounds): Implemented the ::bounds() method.
(gnome_canvas_pixbuf_draw): Use the correct alpha threshold value.
+1999-11-03 Federico Mena Quintero <federico@redhat.com>
+
+ * src/gnome-canvas-pixbuf.c (recompute_bounding_box): Do proper
+ rounding of bounding box coordinates.
+ (gnome_canvas_pixbuf_bounds): Implemented the ::bounds() method.
+ (gnome_canvas_pixbuf_draw): Use the correct alpha threshold value.
+
1999-11-03 Jonathan Blandford <jrb@redhat.com>
* src/io-gif.c (gif_prepare_lzw): s/lwz/lzw/g
item->x2 = MAX (max_x1, max_x2);
item->y2 = MAX (max_y1, max_y2);
- item->x2++;
- item->y2++;
+ item->x1 = floor (item->x1);
+ item->y1 = floor (item->y1);
+ item->x2 = ceil (item->x2);
+ item->y2 = ceil (item->y2);
}
\f
0, 0,
width, height,
GDK_PIXBUF_ALPHA_BILEVEL,
- 127,
+ 128,
GDK_RGB_DITHER_MAX,
x, y);
gcp = GNOME_CANVAS_PIXBUF (item);
priv = gcp->priv;
-
+ *x1 = 0.0;
+ *y1 = 0.0;
+
+ if (priv->pixbuf) {
+ if (priv->width_set)
+ *x2 = priv->width;
+ else
+ *x2 = priv->pixbuf->art_pixbuf->width;
+
+ if (priv->height_set)
+ *y2 = priv->height;
+ else
+ *y2 = priv->pixbuf->art_pixbuf->height;
+ } else {
+ *x2 = 0.0;
+ *y2 = 0.0;
+ }
}